#include "deadProxyTibiaRW.h"


int TibiaRW::Write(void* address, void* buffer, int size)
{
    if(WriteProcessMemory(hdl, (LPVOID)address, (LPVOID)buffer, size, NULL)==0)
    {
        return 0;
    } else {
        return 1;
    }
}

int TibiaRW::Read(void* address, void* buffer, int size)
{
    if(ReadProcessMemory(hdl, (LPVOID)address, (LPVOID)buffer, size, NULL)==0)
    {
        return 0;
    } else {
        return 1;
    }
}


TibiaRW::TibiaRW(void* handle)
{
    hdl = (HANDLE)handle;
}

TibiaRW::~TibiaRW()
{
}

